/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.diplomka.servicelayer.dto;

import cz.fi.muni.diplomka.common.enumeration.ResearchType;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * Class representing Research being researched by Player
 *
 * @author Jakub Kutil
 */
public class ResearchInProgress {

    private Long playerId;
    private ResearchType researchType;
    private Timestamp timeOfFinish;

    public ResearchInProgress() {
    }

    public Long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(Long playerId) {
        this.playerId = playerId;
    }

    public ResearchType getResearchType() {
        return researchType;
    }

    public void setResearchType(ResearchType researchType) {
        this.researchType = researchType;
    }

    public Timestamp getTimeOfFinish() {
        return timeOfFinish;
    }

    public void setTimeOfFinish(Timestamp timeOfFinish) {
        this.timeOfFinish = timeOfFinish;
    }
    
    @Override
    public int hashCode() {
        int hash = 3;
        hash = 23 * hash + Objects.hashCode(this.researchType);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ResearchInProgress other = (ResearchInProgress) obj;
        if (this.researchType != other.researchType) {
            return false;
        }
        return true;
    }
}
